cmake_minimum_required(VERSION 2.8)
project(std_msgs)

find_package(catkin REQUIRED)
find_package(genmsg REQUIRED)

catkin_stack()
catkin_project(std_msgs
               INCLUDE_DIRS include)

add_message_files(
  DIRECTORY msg
  FILES Bool.msg Float32MultiArray.msg Int64MultiArray.msg
  UInt32.msg Byte.msg Float64.msg Int8.msg
  UInt32MultiArray.msg ByteMultiArray.msg
  Float64MultiArray.msg Int8MultiArray.msg UInt64.msg
  Char.msg Header.msg MultiArrayDimension.msg
  UInt64MultiArray.msg Int16.msg MultiArrayLayout.msg
  UInt8.msg ColorRGBA.msg Int16MultiArray.msg
  String.msg UInt8MultiArray.msg Duration.msg
  Int32.msg Time.msg Empty.msg Int32MultiArray.msg
  UInt16.msg Float32.msg Int64.msg
  UInt16MultiArray.msg)

generate_messages()

install(FILES manifest.xml stack.xml
  DESTINATION share/std_msgs
)
install(DIRECTORY msg
  DESTINATION share/std_msgs
  PATTERN ".svn" EXCLUDE
  )
install(FILES 
  include/std_msgs/builtin_bool.h
  include/std_msgs/builtin_double.h
  include/std_msgs/builtin_float.h
  include/std_msgs/builtin_int16.h
  include/std_msgs/builtin_int32.h
  include/std_msgs/builtin_int64.h
  include/std_msgs/builtin_int8.h
  include/std_msgs/builtin_string.h
  include/std_msgs/builtin_uint16.h
  include/std_msgs/builtin_uint32.h
  include/std_msgs/builtin_uint64.h
  include/std_msgs/builtin_uint8.h
  include/std_msgs/header_deprecated_def.h
  include/std_msgs/trait_macros.h
  DESTINATION include/std_msgs
  )

